package com.dgut.forum.services;

import com.dgut.forum.model.User;

public interface IUserService {

    void createNormalUser(User user);

    User selectByUserName(String username);
    User login(String username,String password);
    User selectByPrimaryKey(Long id);

    void addOneToUserArticleCount(Long id);
    void subOneToUserArticleCount(Long id);
    void updateUserInfo(User user);

    void modifyPassword(Long id,String oldPassword,String newPassword);
}
